# $Id$
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Previous Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Previous Contributor: aeolist <aeolist@hotmail.com>
# Previous Contributor: Gabriel Rauter <rauter.gabriel@gmail.com>

pkgname=sysprof
pkgver=3.24.0
pkgrel=1
pkgdesc="a profiling tool that helps in finding the functions in which a program uses most of its time"
arch=('i686' 'x86_64')
url="http://www.daimi.au.dk/~sandmann/sysprof/"
license=("GPL")
source=(https://download.gnome.org/sources/sysprof/${pkgver%.*}/$pkgname-$pkgver.tar.xz)
depends=('gtk3' 'glib2' 'polkit')
makedepends=('gtk3' 'glib2' 'systemd' 'itstool')
sha256sums=('589c71573865f49aa27bbf3eb92d8089205dc48c3bcab451a619f4a99489b4ac')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure \
    --prefix=/usr \
    --sysconfdir=/usr/lib \
    --libexecdir=/usr/lib/ \
    --disable-Werror
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir" install
}
